package com.initial.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.initial.entity.TbSystemRole;
import com.initial.entity.TbSystemUser;
import com.initial.service.TbSystemRoleService;
import com.initial.mapper.TbSystemRoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 29081
* @description 针对表【tb_system_role】的数据库操作Service实现
* @createDate 2021-12-21 15:36:04
*/
@Service
public class TbSystemRoleServiceImpl extends ServiceImpl<TbSystemRoleMapper, TbSystemRole>
    implements TbSystemRoleService{
    @Resource
    private TbSystemRoleMapper tbSystemRoleMapper;
    @Override
    public IPage<TbSystemRole> searchAllPage(Page<TbSystemUser> page) {
        IPage<TbSystemRole> tbSystemRoleIPage = tbSystemRoleMapper.searchAllPage(page);
        return tbSystemRoleIPage;
    }

    @Override
    public IPage<TbSystemRole> selectPage(Page<TbSystemUser> page) {
        IPage<TbSystemRole> tbSystemRoleIPage = tbSystemRoleMapper.selectPage(page);
        return tbSystemRoleIPage;
    }

    @Override
    public Integer deleteById(Integer id,Integer updateBy) {
        Integer integer = tbSystemRoleMapper.deleteById(id,updateBy);
        return integer;
    }
}




